package com.diver.flinkdemo.entity.Trd.ProvincialZhongTai;

import java.io.Serializable;

/**
 * @author 
 */
public class StudentLiveness implements Serializable {
    private Integer id;

    /**
     * 平台厂家名
     */
    private String companyname;

    /**
     * 数据归集日期
     */
    private String calcdate;

    /**
     * 学校名称
     */
    private String schoolname;

    /**
     * 平台厂家id
     */
    private String companyid;

    /**
     * 学生姓名
     */
    private String realname;

    /**
     * 学生证imei号
     */
    private String imei;

    /**
     * 用户唯一标识（身份证号码）
     */
    private String idcardno;

    /**
     * 区县编码
     */
    private String areacode;

    /**
     * 区县名称
     */
    private String areaname;

    /**
     * 操作编码
     */
    private String opcode;

    /**
     * 操作名称
     */
    private String opname;

    /**
     * 操作时间
     */
    private String optime;

    /**
     * 操作时长
     */
    private String oplasttime;

    /**
     * 学校统一信用代码
     */
    private String creditcode;

    /**
     * 是否推送省中台
     */
    private Integer isPush;

    /**
     * 推送记录表id
     */
    private Integer recordId;

    /**
     * 添加时间
     */
    private String addTime;

    /**
     * 修改时间
     */
    private String updataTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCompanyname() {
        return companyname;
    }

    public void setCompanyname(String companyname) {
        this.companyname = companyname;
    }

    public String getCalcdate() {
        return calcdate;
    }

    public void setCalcdate(String calcdate) {
        this.calcdate = calcdate;
    }

    public String getSchoolname() {
        return schoolname;
    }

    public void setSchoolname(String schoolname) {
        this.schoolname = schoolname;
    }

    public String getCompanyid() {
        return companyid;
    }

    public void setCompanyid(String companyid) {
        this.companyid = companyid;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public String getIdcardno() {
        return idcardno;
    }

    public void setIdcardno(String idcardno) {
        this.idcardno = idcardno;
    }

    public String getAreacode() {
        return areacode;
    }

    public void setAreacode(String areacode) {
        this.areacode = areacode;
    }

    public String getAreaname() {
        return areaname;
    }

    public void setAreaname(String areaname) {
        this.areaname = areaname;
    }

    public String getOpcode() {
        return opcode;
    }

    public void setOpcode(String opcode) {
        this.opcode = opcode;
    }

    public String getOpname() {
        return opname;
    }

    public void setOpname(String opname) {
        this.opname = opname;
    }

    public String getOptime() {
        return optime;
    }

    public void setOptime(String optime) {
        this.optime = optime;
    }

    public String getOplasttime() {
        return oplasttime;
    }

    public void setOplasttime(String oplasttime) {
        this.oplasttime = oplasttime;
    }

    public String getCreditcode() {
        return creditcode;
    }

    public void setCreditcode(String creditcode) {
        this.creditcode = creditcode;
    }

    public Integer getIsPush() {
        return isPush;
    }

    public void setIsPush(Integer isPush) {
        this.isPush = isPush;
    }

    public Integer getRecordId() {
        return recordId;
    }

    public void setRecordId(Integer recordId) {
        this.recordId = recordId;
    }

    public String getAddTime() {
        return addTime;
    }

    public void setAddTime(String addTime) {
        this.addTime = addTime;
    }

    public String getUpdataTime() {
        return updataTime;
    }

    public void setUpdataTime(String updataTime) {
        this.updataTime = updataTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        StudentLiveness other = (StudentLiveness) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCompanyname() == null ? other.getCompanyname() == null : this.getCompanyname().equals(other.getCompanyname()))
            && (this.getCalcdate() == null ? other.getCalcdate() == null : this.getCalcdate().equals(other.getCalcdate()))
            && (this.getSchoolname() == null ? other.getSchoolname() == null : this.getSchoolname().equals(other.getSchoolname()))
            && (this.getCompanyid() == null ? other.getCompanyid() == null : this.getCompanyid().equals(other.getCompanyid()))
            && (this.getRealname() == null ? other.getRealname() == null : this.getRealname().equals(other.getRealname()))
            && (this.getImei() == null ? other.getImei() == null : this.getImei().equals(other.getImei()))
            && (this.getIdcardno() == null ? other.getIdcardno() == null : this.getIdcardno().equals(other.getIdcardno()))
            && (this.getAreacode() == null ? other.getAreacode() == null : this.getAreacode().equals(other.getAreacode()))
            && (this.getAreaname() == null ? other.getAreaname() == null : this.getAreaname().equals(other.getAreaname()))
            && (this.getOpcode() == null ? other.getOpcode() == null : this.getOpcode().equals(other.getOpcode()))
            && (this.getOpname() == null ? other.getOpname() == null : this.getOpname().equals(other.getOpname()))
            && (this.getOptime() == null ? other.getOptime() == null : this.getOptime().equals(other.getOptime()))
            && (this.getOplasttime() == null ? other.getOplasttime() == null : this.getOplasttime().equals(other.getOplasttime()))
            && (this.getCreditcode() == null ? other.getCreditcode() == null : this.getCreditcode().equals(other.getCreditcode()))
            && (this.getIsPush() == null ? other.getIsPush() == null : this.getIsPush().equals(other.getIsPush()))
            && (this.getRecordId() == null ? other.getRecordId() == null : this.getRecordId().equals(other.getRecordId()))
            && (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
            && (this.getUpdataTime() == null ? other.getUpdataTime() == null : this.getUpdataTime().equals(other.getUpdataTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCompanyname() == null) ? 0 : getCompanyname().hashCode());
        result = prime * result + ((getCalcdate() == null) ? 0 : getCalcdate().hashCode());
        result = prime * result + ((getSchoolname() == null) ? 0 : getSchoolname().hashCode());
        result = prime * result + ((getCompanyid() == null) ? 0 : getCompanyid().hashCode());
        result = prime * result + ((getRealname() == null) ? 0 : getRealname().hashCode());
        result = prime * result + ((getImei() == null) ? 0 : getImei().hashCode());
        result = prime * result + ((getIdcardno() == null) ? 0 : getIdcardno().hashCode());
        result = prime * result + ((getAreacode() == null) ? 0 : getAreacode().hashCode());
        result = prime * result + ((getAreaname() == null) ? 0 : getAreaname().hashCode());
        result = prime * result + ((getOpcode() == null) ? 0 : getOpcode().hashCode());
        result = prime * result + ((getOpname() == null) ? 0 : getOpname().hashCode());
        result = prime * result + ((getOptime() == null) ? 0 : getOptime().hashCode());
        result = prime * result + ((getOplasttime() == null) ? 0 : getOplasttime().hashCode());
        result = prime * result + ((getCreditcode() == null) ? 0 : getCreditcode().hashCode());
        result = prime * result + ((getIsPush() == null) ? 0 : getIsPush().hashCode());
        result = prime * result + ((getRecordId() == null) ? 0 : getRecordId().hashCode());
        result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
        result = prime * result + ((getUpdataTime() == null) ? 0 : getUpdataTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(" {");
        if(companyname == null || "".equals(companyname)){
            sb.append("\"companyname\":").append("\"\"");
        }else {
            sb.append("\"companyname\":").append("\""+companyname+"\"");
        }
        if(calcdate == null || "".equals(calcdate)){
            sb.append(", \"calcdate\":").append("\"\"");
        }else {
            sb.append(", \"calcdate\":").append("\""+calcdate+"\"");
        }
        if(schoolname == null || "".equals(schoolname)){
            sb.append(", \"schoolname\":").append("\"\"");
        }else {
            sb.append(", \"schoolname\":").append("\""+schoolname+"\"");
        }
        if(companyid == null || "".equals(companyid)){
            sb.append(", \"companyid\":").append("\"\"");
        }else {
            sb.append(", \"companyid\":").append("\""+companyid+"\"");
        }
        if(realname == null || "".equals(realname)){
            sb.append(", \"realname\":").append("\"\"");
        }else {
            sb.append(", \"realname\":").append("\""+realname+"\"");
        }
        if(imei == null || "".equals(imei)){
            sb.append(", \"imei\":").append("\"\"");
        }else {
            sb.append(", \"imei\":").append("\""+imei+"\"");
        }
        if(idcardno == null || "".equals(idcardno)){
            sb.append(", \"idcardno\":").append("\"\"");
        }else {
            sb.append(", \"idcardno\":").append("\""+idcardno+"\"");
        }
        if(areacode == null || "".equals(areacode)){
            sb.append(", \"areacode\":").append("\"\"");
        }else {
            sb.append(", \"areacode\":").append("\""+areacode+"\"");
        }
        if(areaname == null || "".equals(areaname)){
            sb.append(", \"areaname\":").append("\"\"");
        }else {
            sb.append(", \"areaname\":").append("\""+areaname+"\"");
        }
        if(opcode == null || "".equals(opcode)){
            sb.append(", \"opcode\":").append("\"\"");
        }else {
            sb.append(", \"opcode\":").append("\""+opcode+"\"");
        }
        if(opname == null || "".equals(opname)){
            sb.append(", \"opname\":").append("\"\"");
        }else {
            sb.append(", \"opname\":").append("\""+opname+"\"");
        }
        if(optime == null || "".equals(optime)){
            sb.append(", \"optime\":").append("\"\"");
        }else {
            sb.append(", \"optime\":").append("\""+optime+"\"");
        }
        if(oplasttime == null || "".equals(oplasttime)){
            sb.append(", \"oplasttime\":").append("\"\"");
        }else {
            sb.append(", \"oplasttime\":").append("\""+oplasttime+"\"");
        }
        if(creditcode == null || "".equals(creditcode)){
            sb.append(", \"creditcode\":").append("\"\"");
        }else {
            sb.append(", \"creditcode\":").append("\""+creditcode+"\"");
        }
        sb.append("}");
        return sb.toString();
    }
}